const http = require('http');
http.createServer(function (request, response) {
    // ##HTTP状态值:200,内容类型: text/plain
    response.writeHead(200, {'Content-Type': 'text/plain'});
    // ##发送响应数据 "Hello World"
    response.end('Hello Server');
}).listen(8000);
// ##终端打印如下信息
console.log('Server running at http://localhost:8000/');